#include "gtest/gtest.h"
#include "StringId.h"

USING_NS_B2D

TEST(test_stringid, comparasion)
{
	StringId one("one");
	StringId one_("one");
	StringId two("two");

	bool one_eq_one = (one == one)
		&& (one == one_)
		&& (one == "one")
		&& (one == string("one"));
	bool one_eq_two = (one == two)
		|| (one == "two")
		|| (one == string("two"));
	bool one_neq_one = (one != one)
		|| (one != one_)
		|| (one != "one")
		|| (one != string("one"));
	bool one_neq_two = (one != two)
		&& (one != "two")
		&& (one != string("two"));

	EXPECT_EQ(true, one_eq_one);
	EXPECT_EQ(false, one_eq_two);
	EXPECT_EQ(false, one_neq_one);
	EXPECT_EQ(true, one_neq_two);
}